package com.wnhz.work.yz.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.wnhz.work.yz.BaseActivity;
import com.wnhz.work.yz.R;

/**
 * ---展馆
 */
public class ExhibitionActivity extends BaseActivity implements View.OnClickListener{
    private TextView title;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_exhibition);

        initData();
        initView();
    }

    private void initData() {

    }

    private void initView() {
        title = (TextView) findViewById(R.id.view_main_middle_title);
        title.setText("展馆");
        findViewById(R.id.btn_main_left).setOnClickListener(this);
        findViewById(R.id.rl_reception).setOnClickListener(this);
        findViewById(R.id.rl_visit).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Intent intent;
        switch (v.getId()) {
            case R.id.btn_main_left:
                finish();
                break;

            //接待信息
            case R.id.rl_reception:
                intent = new Intent(this, ReceptionMessageActivity.class);
                startActivity(intent);
                break;

            //参观申请
            case R.id.rl_visit:
                intent = new Intent(this, ExhibitionApplyActivity.class);
                startActivity(intent);
                break;

            default:
                break;
        }
    }
}
